package com.qfedu.yige.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName ("card")
public class Card {

    @TableField(value = "ca_id")
    private Integer caId;

    @TableField(value = "ca_name")
    private String caName ;

    @TableField(value = "start_time")
    @DateTimeFormat
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd ")
    private Date startTime;

    @TableField(value = "start_time")
    @DateTimeFormat
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd ")
    private Date endTime;
}
